package com.sc.nft.entity.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sc.nft.enums.ClassifyType;
import com.sc.nft.enums.CommodityType;
import com.sc.nft.enums.OrderStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class OrderPageWebVO {

    @ApiModelProperty("用户Id")
    private Long userId;

    @ApiModelProperty("商品Id")
    private Long productId;

    @ApiModelProperty("藏片/盲盒Id")
    private Long relationId;

    @ApiModelProperty("一级标题")
    private String firstTitle;

    @ApiModelProperty("创作者Id")
    private Long userCreatorId;

    @ApiModelProperty("订单编号")
    private String orderNo;

    @ApiModelProperty("商品类型")
    private ClassifyType typeClassify;

    @ApiModelProperty("订单类型")
    private CommodityType orderType;

    @ApiModelProperty("封面图片地址")
    private String imageUrl;

    @ApiModelProperty("购买数量")
    private Integer count;
    @ApiModelProperty("商品价格")
    private String productPrice;

    @ApiModelProperty("状态")
    private OrderStatusEnum status;

    @ApiModelProperty("下单时间")
    private Date orderTime;

    @ApiModelProperty("订单关闭时间")
    private Date closeTime;

    @ApiModelProperty("付款时间")
    private Date payTime;

    @ApiModelProperty("是否关闭结算邀请奖励 0:否 1:是")
    private Boolean isClose;

    @ApiModelProperty("苹果应用id")
    private String appleProductId;

    @ApiModelProperty("是否是优先购的订单")
    private Boolean isBuyFirst;

    @ApiModelProperty("是否是优先抢的订单")
    private Boolean isRushBuy;

    @ApiModelProperty("是否是折扣订单")
    private Boolean isDiscount;

    @ApiModelProperty("折扣金额")
    private BigDecimal discountPrice;

    @ApiModelProperty("结算标记")
    private Boolean settleFlag;

    @ApiModelProperty("原价格")
    private BigDecimal originalPrice;

    @ApiModelProperty("用户权益道具id集合")
    private String userEquityPropsIds;

    @ApiModelProperty("权益道具名称")
    private String equityPropsName;

    @ApiModelProperty("权益道具数量")
    private Integer equityPropsNum;


    @ApiModelProperty("业绩计算标记")
    private Boolean performanceSettleFlag;

    @ApiModelProperty("分润模板Id")
    private Long shareProfitPanelId;

    @ApiModelProperty("id")
    protected Long id;

    @ApiModelProperty("创建时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date createTime;

    @ApiModelProperty("修改时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date modifyTime;

    @ApiModelProperty("创建人id")
    protected Long createId;

    @ApiModelProperty("修改人id")
    protected Long modifyId;

    @ApiModelProperty("逻辑删除")
    protected Boolean isDelete;

    public void setProductPrice(BigDecimal productPrice) {
        this.productPrice = productPrice.toPlainString();
    }


}
